import store from '@/store'

function calcPoints(price){
  let pointsRatio = store.state.systemSetting.setting?.pointsRatio || 100
  return (price * (pointsRatio / 100)).toFixed(2)
}

export default calcPoints
